package Game;

import java.util.Scanner;

/**
 * 玩家类
 */
public class Player extends Role{
    public Player(){}
    public Player(String name){
        this.setName(name);
    }
    /**
     * 玩家出拳
     * @return
     */
    public static int input() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请选择：1-石头，2-剪刀，3-布");
        int put = scanner.nextInt();
        if (put == 1){
            System.out.println("你出了石头");
        }else if (put == 2){
            System.out.println("你出了剪刀");
        }else if (put == 3){
            System.out.println("你出了布");
        }
        return put;

    }
}
